// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(2,4) == 0;
	question = "special";
	text1 = "You enter Isenwood's Spire. It is a Shaper keep, centuries old and well worn. It is a long series of chambers, many of them natural caverns, spiraling up into the spire. The tile floor shows the wear of countless travelers.";
	text2 = "Your mind still feels cloudy and slow, but, when you enter this place, you feel more calm. Secure. For once, safe.";
	text3 = "That isn't surprising. Whatever one feels about the Shapers, good or bad, they are masters of security. Before the rebellion, they brought centuries of peace and prosperity.";
	text4 = "Fortresses like this one, while rough and aged, are meant to clearly communicate a message: The Shapers have been here for centuries. And they are ready to remain for centuries more.";
	action = SET_SDF 2 4 1;
	code =
		sf(2,2,1);
	break;
	
begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(2,5) == 0;
	question = "special";
	text1 = "You aren't sure why Isenwood's Spire is left in such a seemingly rough state, but it does leave things very dark. Some of the side corridors are lost in shadow.";
	text2 = "Fortunately, they are courteous enough to provide lamps for visitors. They are on the table to the south.";
	text3 = "(When you are in a dark area, get and use a light source. You will find it much easier to see until you leave the area.)";
	action = SET_SDF 2 5 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(2,6) == 0;
	question = "special";
	text1 = "You pass a second alcove, full of creation guards. They stare off into space, lulled by the peaceful vibrations from the conduits on the floor.";
	text2 = "As you pass by, you feel something. A cold, invisible presence. It moves through quickly. It touches your mind and then recoils. It has no interest in you. The creations are of greater interest.";
	text3 = "In a moment, it is gone. The thahds in the alcove have changed. They are slowly waking up from their trance. They are also drooling, and one lets out a long, low snarl.";
	text4 = "You might have to discipline them, unless you can retreat to safety.";
	action = SET_SDF 2 6 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = get_sdf(2,7) == 0;
	question = "special";
	text1 = "A pair of crystals have been left on this table. They aren't ordinary stones. They have been hollowed out and filled with charged essence.";
	text2 = "When thrown at a foe, they will explode, damaging and weakening all nearby. Another powerful weapon created by the Shapers.";
	text3 = "(Use crystals like these in combat to throw them at a foe. You can either use them on the inventory screen or put them in a Quick Use slot and use them from the main game screen.)";
	action = SET_SDF 2 7 1;

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = get_sdf(2,8) == 0;
	question = "special";
	text1 = "You find that a thorn baton has been left on this table. You should probably take it. Thorn batons are one of the Shapers' most useful creations.";
	text2 = "Both the baton and the thorns it spits out were made by the Shapers. The baton is a long, thin, reptilian creation, kept safe in a long, metal frame. The thorns are grown on specially Shaped bushes.";
	text3 = "Together, they are a highly effective weapon.";
	text4 = "(Equip a thorn baton like you would any other weapon. There are several sorts of batons, and each shoots its own sort of thorn. If a baton is out of thorns, you will automatically reload it when you attack.)";
	action = SET_SDF 2 8 1;

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = get_sdf(2,9) == 0;
	question = "special";
	text1 = "There is a rank odor in the air in this corridor. The floor is filthy and covered with shards of bone. You hear the echoing growls of a creation in the shadows.";
	text2 = "Something is guarding this corridor. Something large. If you proceed and are not careful, you may be in great danger.";
	action = SET_SDF 2 9 1;

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = get_sdf(2,10) == 0;
	question = "special";
	text1 = "There is a large Shaping vat in the rear corner of Rawal's laboratory. Its lid is down but not latched. It bubbles and hisses and belches out clouds of sulfurous smoke.";
	text2 = "It looks like an experiment left unattended and out of control. Getting close to the vat could be very dangerous.";
	action = SET_SDF 2 10 1;

begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = get_sdf(2,11) == 0;
	question = "special";
	text1 = "There are several large creations on guard in the alcove to the south. They stand almost perfectly still, staring off into space.";
	text2 = "Even in your muddled state, you should know that they shouldn't be this tightly under control in the absence of any Shapers. And then you hear it.";
	text3 = "There is a faint hum in the air. You soon determine that the soothing sound is coming from the crystalline conduits on the floor. Ingenious. Shaper Rawal keeps his creations under control with machinery.";
	text4 = "The creations must be kept under control from somewhere. You wonder where.";
	action = SET_SDF 2 11 1;

begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = get_sdf(2,12) == 0;
	question = "special";
	text1 = "At last, you reach the throne room. Shaper Rawal, member of the Shaper Council, holds court here.";
	text2 = "He is currently sitting in his throne and reading through a sheaf of reports. He occasionally looks over at the creations on guard, looking for signs of them going rogue.";
	text3 = "When he sees you at the entrance, he waves you in. _You are finally here? Come in. Hurry. I expect greater speed from my underlings._";
	action = SET_SDF 2 12 1;

begintalknode 10; // pc info book
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "This old, ratty journal is a list of all of the menial workers who care for the many creations here. Both human outsiders and serviles are described in some detail.";
	text2 = "You idly flip through the later entries, skimming them. Then you stop. You realize, with a shock, that you are reading a description of yourself, written in Rawal's own hand:";
	text3 = "_Subject was found wandering at base of Drypeak Mountains. Complete memory loss. Showed signs of long travel and exposure to wilderness, so dementia may not have struck at that location._";
	text4 = "_Showed signs of having been Shaped, so was brought to Foundry for evaluation. May be a useful resource. Mental weakness means that, when any innate powers expose themselves, subject can be commanded and manipulated._";
	text5 = "_Control tool implanted immediately. Best to be safe._";
	text6 = "This is some information about your origin, but not much. The Drypeak Mountains are some distance to the south, near the Storm Plains.";
	code =
		if (gf(3,26) > 0)
			rs(6);
		sf(3,26,1);
	break;
	
begintalknode 11; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "You examine this creation. It doesn't react to your presence. It stares straight ahead, waiting for a Shaper's command.";
	text2 = "It shows no sign of the instructions you gave to the servant mind who controls it. Hopefully, if it ever attacks you, you will be able to calm it.";
	code =
		if (gf(2,13) == 0)
			rs(2);
	break;

begintalknode 12; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The weight of the Shaping vat's lid was just barely enough to keep the bubbling mass within weighed down. When you get close to it, however, the vibrations of your footsteps disturb the delicate equilibrium.";
	text2 = "The lid flies up. The chamber fills with choking smoke. The energized essence within begins to bubble up and take form. Globules of it fly all over the room.";

begintalknode 13; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "One of the guard creations lurches at you, trying to attack. It moves slowly and unsteadily, the result of your sabotage. It senses that you are not its enemy. Some of the guard creations are more vulnerable than others.";
	text2 = "You concentrate and extend your will, trying to turn this creation against its master. Had Shaper Rawal actually spent time commanding his servants, his bond would be strong enough that you wouldn't have a chance of breaking it.";
	text3 = "However, he neglected this duty, and you take advantage of his mistake. The creation turns away from you, looking for other prey.";

begintalknode 14; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "You flip through the book on this pedestal. It is stained and torn, and it looks like it spent at least some time in a mud puddle. The writing that remains legible is all in some sort of cipher.";
	text2 = "You can't understand it, and you have no idea where it came from. You leave it alone.";
	text3 = "This must be the book you learned about in Mera. You flip through it until you find the pages with the marks that were described to you. Then you get some water from a nearby bucket and smudge the writing.";
	text4 = "There is nothing else to do, so you close the book.";
	text5 = "You flip through the book. It looks exactly the same as it did the last time you inspected it.";
	code =
		clear_strings();
		as(1);
		if (gf(3,27) == 0)
			as(2);
			else if (gf(3,27) == 1) {
				sf(3,27,2);
				as(3); as(4);
				}
				else as(5);
	break;

begintalknode 15; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "The creation can't talk. It just looks at you adoringly.";

begintalknode 16; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "There is a thahd standing placidly on this pedestal. It has been extensively poked, prodded, and tested by the Shapers and sages. It looks tired.";
	text2 = "You note that it seems a little shorter and stockier than most of the thahds you have had to care for and clean up after. It must be a new variety.";
 
begintalknode 17; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "There are several serviles walking around this laboratory, sweeping, cleaning, and carrying around heavy things.";
	text2 = "They are almost completely mindless. You can't get any response from them. They just silently walk around you.";
 
begintalknode 18; // 
	state = -1;
	nextstate = -1;
	condition = gf(3,13) == 0;
	question = "";
	text1 = "There is an interesting object in this storeroom. A canister. It's a cylinder of crystal, about a foot high, full of swirling, glowing essence. There is a metal plate on top, with a knob in the middle.";
	text2 = "You can't remember ever seeing one of these objects, and yet it seems deeply familiar to you. You somehow know that you can put your hand on the knob. Then the essence inside will change you. It's as if you have used one of these before.";
	text3 = "You feel a deep compulsion to use the canister, to let it make you stronger. It is difficult to back away ...";
	text4 = "(Use the canister and it will increase one of your skills. However, use of too many canisters can have unpredictable effects.)";
 	action = SET_SDF 3 13 1;
 	
begintalknode 19; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";	
	
	
//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Controller Mind";
	text1 = "There is a servant mind here, sitting in its tray. Several power conduits run underneath it. It seems to be modulating the energy that flows through them. They produce a low, soothing, hum.";
	text2 = "Although the sound they make calms you, being near the mind makes you uncomfortable. There is a lot of static in the air. Your skin itches, and you feel a heavy sensation in your chest.";
	text3 = "You have to get fairly close for the mind to notice you. When you do, it says, _I am Controller Mind. Stay away. Rawal commands that I am to be left alone. Stay away._ Its voice is deep and flat.";
	text5 = "Controller Mind says, _I do not have thought to spare for conversation. Stay away. I am fulfilling the orders of Rawal. Stay away._";
	text6 = "The loose energy you feel in the air here makes staying away seem like a safe option.";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = 31;
	condition = gf(3,25) == 0;
	question = "I want to know something.";
	text1 = "The mind doesn't even look at you. _I sense you are a Shaper. I apologize. I cannot speak with you. I have orders from a member of the Council. Please back away. I do not wish to hurt you._";
	text2 = "The heavy feeling in your chest is growing stronger. You feel short of breath.";
	code =
		if (gf(100,8) > 0)
			rs(2);
	break;

begintalknode 32;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "You think I am a Shaper?";
	text1 = "_You have the ability to work essence. It is within you. This is something I can sense. I still cannot work with you. It is the order of Rawal._";
	
begintalknode 33;
	state = 31;
	nextstate = 32;
	condition = gf(100,8) > 0;
	question = "I need to speak with you.";
	text1 = "_Shaper, I am sorry that I must do this._ The Controller Mind looks up at you.";
	text2 = "Nothing happens.";
	text3 = "The Controller Mind looks confused. _I ... I do not know ...I have no orders for this._";

begintalknode 34;
	state = 31;
	nextstate = -1;
	condition = gf(100,8) == 0;
	question = "I need to speak with you.";
	text1 = "_Shaper, I am sorry that I must do this._";
	text2 = "You feel an agonizing pain in your chest, a sharp sensation that stabs you to the heart. You crawl away, gagging and retching. When you get far enough away, the servant mind ceases what it was doing.";
	text3 = "The Controller Mind must have the ability to affect the control tool. Unfortunate.";
	text4 = "You look at the mind but it seems to have forgotten that you are here.";
	action = END_TALK;
	code =
		if (gf(2,29) == 0)
			rs(3);
	break;
	
begintalknode 35;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "(Back away.)";
	text1 = "You move away from the servant mind. Once you are free of the cloud of loose power that surrounds it, you feel better immediately.";
	action = END_TALK;


begintalknode 36;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "Now will you speak with me?";
	text1 = "_I ... I still have orders from Rawal. I only aid him._";

begintalknode 37;
	state = 32;
	nextstate = 30;
	condition = get_stat(20) >= 7;
	question = "In the absence of clear orders, you must obey a Shaper. In this case, me.";
	text1 = "The Controller Mind still looks confused, but it knows that you speak the truth. _I ... Until I get clarification from Rawal, I will speak with you. Briefly._";
	action = SET_SDF 3 25 1;

begintalknode 38;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "I command that you assist me.";
	text1 = "You almost convince the servant mind. Almost, but not quite. _Rawal gave ... gave orders. In this case, the best option is to follow what orders I do have._";
	text2 = "_Please leave. I cannot help._ The mind returns to concentrating on the energy flow.";
	action = END_TALK;

begintalknode 39;
	state = 30;
	nextstate = 33;
	condition = gf(3,25) > 0;
	question = "What are you doing?";
	text1 = "Now that the Controller Mind thinks that it can speak with you, its voice is slightly cheerier. _I control the guard creations here. They are made to respond to signals. I send them through the conduits._";
	text2 = "It causes the soothing humming to change slightly. It warbles a little faster, than a little slower. _They are trained to respond._";

begintalknode 40;
	state = 30;
	nextstate = -1;
	condition = gf(3,25) > 0;
	question = "Tell me about Isenwood's Spire.";
	text1 = "_I do not know anything. I was created in this room. In this room I will remain. In this room I will die. This is what Shaper Bruel has said to me._";

begintalknode 41;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "That is all I want to know. (Leave.)";
	text1 = "You move away from the servant mind. Once you are free of the cloud of loose power that surrounds it, you feel better immediately.";
	action = END_TALK;


begintalknode 42;
	state = 33;
	nextstate = -1;
	condition = get_stat(20) < 11 && gf(2,13) == 0;
	question = "Please make sure the guards here never attack me.";
	text1 = "The Controller Mind looks perplexed. _I'm sorry, Shaper. I can't ... but I ... My orders are clear. I ..._";
	text2 = "After some thought, it comes up with a solution to its quandary. _I will make the guards less likely to see you. If you anger Rawal and they notice you, however, they will destroy you._";
	text3 = "The Controller Mind concentrates for a minute. The humming noise changes rapidly, trilling high and low and the mind sends messages along the conduits. Then the humming returns to normal. _It is done._";
	code =
		if (gf(2,13) == 0) {
			sf(2,13,1);
			award_party_xp(100,8);
			}
	break;
	
begintalknode 43;
	state = 33;
	nextstate = -1;
	condition = get_stat(20) < 11 && gf(2,13) == 1;
	question = "I want the guards to respond to my commands.";
	text1 = "You have exercised some power over the mind, but nowhere near enough for it to go along with this. _I am sorry, Shaper. Rawal would not approve._";

begintalknode 44;
	state = 33;
	nextstate = -1;
	condition = get_stat(20) >= 11 && gf(2,13) < 2;
	question = "I need to examine and improve the guards. Enable them to respond to my commands.";
	text1 = "It takes all of the concentration and authority you can summon, but the Controller Mind believes you. _Yes, Shaper. I ..._";
	text3 = "The Controller Mind concentrates for a minute. The humming noise changes rapidly, trilling high and low and the mind sends messages along the conduits. Then the humming returns to normal. _It is done. Almost._";
	text4 = "_I had some troubles. Some of the guards may not fully respond to you. If this is a difficulty, you can speak with Rawal._";
	code =
		if (gf(2,13) < 2) {
			sf(2,13,2);
			award_party_xp(150,11);
			}
	break;

begintalknode 45;
	state = 33;
	nextstate = -1;
	condition = 1;
	question = "I need to know something else.";
	text1 = "_I am sorry, Shaper. I sense that the guards are becoming erratic. I need to concentrate on regaining my control._";
	text2 = "The mind ignores you and focuses on the energy flow.";
	action = END_TALK;

//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = "As you approach the small dining hall for the workers of Isenwood's Spire, someone approaches you. It is dark enough that you don't recognize her until she is close. It is Mehken.";
	text2 = "She seems pleased to see you. _You made it safely to Rawal. I was told you need a guide. You hunt the intruder. I'd be happy to come. I help you with this task._";
	text5 = "Since she is in the mess hall, Mehken takes the opportunity to eat a lot of fresh bread and stew. The food that was sent out to your quarters in the Pacification Fields was rarely edible, let alone good.";
	text6 = "_You ready?_ she says through a mouthful of bread. _We go hunt intruder? Find what makes rogues?_";
	action = INTRO;
	code =
		sf(2,14,1);
	break;
	
begintalknode 51;
	state = 50;
	nextstate = 51;
	condition = 1;
	question = "Where have you been?";
	text1 = "_I went into Minallah. I am grabbed right away. Send into Promenade to stop rogues. Too many. Flee back into Minallah. Then help more in here. Then in Minallah._";
	text2 = "_Presence keeps moving. More go rogue. And more and more. Not good._";

	
begintalknode 52;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "What is the presence?";
	text1 = "_Only know what I am told. Is force, like spirit or ghost. I even felt it, once, before an artila went mad. This is what you hunt. And me, if I guide you._";
	
begintalknode 53;
	state = 50;
	nextstate = 51;
	condition = 1;
	question = "There is something I want to know first.";
	text1 = "_I know little. I tell you what I can._";
	
begintalknode 54;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "I have something called a control tool in my chest. What is it?";
	text1 = "Mehken looks at you with sympathy. Then she shakes her head. _That is not a thing serviles know about. But ... but it sounds hard to remove. Sounds like you are bound to Rawal. Probably for life._";
	text2 = "_Only a great Shaper could remove a thing like that. I would guess. That is all I know._";
	
begintalknode 55;
	state = 51;
	nextstate = 52;
	condition = 1;
	question = "Do you know anything about where I came from?";
	text1 = "_I do not. Never knew. Is truth. I do not know. Others might._";
	
begintalknode 56;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "What else is happening in the Foundry?";
	text1 = "_Only taming of mad creations. Is all I know about. The ghost that makes the rogues is all we think about._";
	text2 = "_Hope it is found. Before it takes over me._";
	
begintalknode 57;
	state = 52;
	nextstate = -1;
	condition = 1;
	question = "Who might know?";
	text1 = "_Rawal would know something. Him more than anyone. If you found a way to his records. Private records. I do not know how. Would be dangerous. Do not know more about that._";
	
begintalknode 58;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "I want to know about you. Where are you really from?";
	text1 = "Mehken shakes her head. _The spirit. Or presence. Or ghost. We must find it, truly. Is dangerous. Causes creations to die. We find it now, yes?_";
	text2 = "_That is what's important now._";

begintalknode 59;
	state = 50;
	nextstate = -1;
	condition = num_chars_in_group(0) == 8;
	question = "I would like for you to join me.";
	text1 = "Mehken shakes her head. _No room. Absorb a creation and ask again._";
	action = END_TALK;

begintalknode 60;
	state = 50;
	nextstate = 53;
	condition = gf(3,24) == 0 && num_chars_in_group(0) < 8;
	question = "I would like for you to join me in the hunt.";
	text1 = "_I am glad. I have my orders. But first, one thing to say._";

begintalknode 61;
	state = 53;
	nextstate = 54;
	condition = 1;
	question = "What?";
	text1 = "_Shapers are powerful. Offer many things. Wealth. Power. Even peace. But it has cost. They take freedom. Take control._ She points at your chest. _Take total control._";
	text2 = "_Remember that. Rawal offers much. You do not have to take it._";

begintalknode 62;
	state = 54;
	nextstate = -1;
	condition = 1;
	question = "What would the Shapers say if they heard you speaking like that?";
	text1 = "_Would go very badly for Mehken. I take risk. For you. Hope I do not pay for it._";

begintalknode 63;
	state = 54;
	nextstate = -1;
	condition = 1;
	question = "I changed my mind. Stay here.";
	text1 = "Mehken looks disappointed, but she backs away. _Mehken ordered to help you. I stay here. When you want help, I am here._";
	action = END_TALK;

begintalknode 64;
	state = 54;
	nextstate = -1;
	condition = 1;
	question = "All right. Let's go.";
	text1 = "Mehken nods and takes her place at your side.";
	text2 = "(Mehken is now a member of your party. If you later dismiss her or she becomes too wounded, she will leave and return to here.)";
	action = END_TALK;
	code = 
		sf(3,24,1);
		add_char_to_party(73);
	break;
	
begintalknode 65;
	state = 50;
	nextstate = -1;
	condition = gf(3,24) > 0 && num_chars_in_group(0) < 8;
	question = "I would like for you to rejoin me.";
	text1 = "_Yes. Those are my orders. Please take better care of Mehken this time._ Mehken takes her place at your side.";
	action = END_TALK;
	code = 
		add_char_to_party(73);
	break;
	
begintalknode 66;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "Stay here for now.";
	text1 = "Mehken looks disappointed, but she backs away. _Mehken ordered to help you. I stay here. When you want help, I am here._";
	action = END_TALK;
	
// 70

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "You finally find Shaper Rawal. If you concentrated hard enough, you could probably have found him with your eyes closed. The power radiating off of him is palpable.";
	text2 = "He sits slouched in his throne. It is hard to see details in the shadows of his hood, but he is middle-aged. He hasn't shaved in a while, and his whiskers are patchy and dotted with grey.";
	text3 = "When you approach, he raises his hand and waves you closer. _Best get the preliminaries out of the way. I am Shaper Rawal, Member of the Shaper Council, One of the Seven. I enlist you in my service. Prepare for my command._";
	text5 = "Shaper Rawal slouches in his throne, lost in thought. He is silent. You watch him, trying to tell if he is exhausted, lost in thought, or concentrating on controlling creations. You can't tell.";
	text6 = "Finally, he says, _What is it?_";
	action = INTRO;
	code =	
		toggle_quest(3,3);
	break;
	
begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = gf(3,23) == 0;
	question = "I want to know what I am doing here. Where did I come from?";
	text1 = "Shaper Rawal chuckles. _I know, but I choose not to tell you. Did I not say? You are in my service. Aid me well, and I may let you know what I do._";

begintalknode 72;
	state = 70;
	nextstate = 71;
	condition = gf(3,23) == 0 && gf(2,29) == 0;
	question = "I am not in your service unless I choose to be.";
	text1 = "Shaper Rawal nods. _Excellent. The sooner I make the demonstration, the more tedious insolence I am spared._";

begintalknode 73;
	state = 70;
	nextstate = 70;
	condition = gf(3,23) == 0 && gf(2,29) > 0;
	question = "I am not in your service unless I choose to be.";
	text1 = "Rawal laughs. _Knowing what you know, you still show such spirit. Even knowing my tiny creation has a narrow tendril extending directly into your heart._";
	text2 = "His hand makes a sharp motion toward your chest. You involuntarily flinch and jump away. Rawal laughs. _Your body is wiser than you are._";
	text3 = "_My command tool is there. It is a fact, and it cannot be removed. You will earn great rewards for your service to me, but there is no escape. Now we can address the next bit of business._";
	action = SET_SDF 3 23 1;

begintalknode 74;
	state = 70;
	nextstate = 71;
	condition = gf(3,23) == 0 && gf(2,29) == 0;
	question = "I await my first command.";
	text1 = "Shaper Rawal nods. _That is good. You show the right attitude. But is it honest or feigned? I think it is best, either way, to demonstrate my control._";

begintalknode 75;
	state = 70;
	nextstate = 70;
	condition = gf(3,23) == 0 && gf(2,29) > 0;
	question = "I await my first command.";
	text1 = "Rawal laughs. _You are wise. You know that there is no resistance, as long as my tiny creation has a narrow tendril extending directly into your heart._";
	text3 = "_My command tool is there. It is a fact, and it cannot be removed. You will earn great rewards for your service to me, but there is no escape. Now we can address the next bit of business._";
	action = SET_SDF 3 23 1;

begintalknode 76;
	state = 71;
	nextstate = 72;
	condition = 1;
	question = "What?";
	text1 = "Shaper Rawal waves a hand.";
	text2 = "You feel as if someone has shoved a sharp pick of red hot steel deep in your chest.";
	text3 = "Eventually, you get up off of the icy stone and stop gagging. You pull your clothes away from your chest and look down. There is a fleshy bump there, about an inch across. It is pulsing slightly. Then it stops and fades into your skin.";
	text4 = "In a few moments, you don't feel anything unusual. The thing in your chest is nearly invisible.";
	text5 = "Rawal smirks.";

begintalknode 77;
	state = 72;
	nextstate = 70;
	condition = 1;
	question = "What have you done to me?";
	text1 = "_It is called a control tool. A variety of living tool of my own invention. Instead of going into a machine, it goes into your chest. Deep inside. With a command, I can have it tear your heart open._";
	text2 = "_It is there. It is a fact, and it cannot be removed. You will earn great rewards for your service to me, but there is no escape. Now we can address the next bit of business._";
	action = SET_SDF 3 23 1;
	
begintalknode 78;
	state = 70;
	nextstate = 74;
	condition = gf(3,23) == 1;
	question = "What do you want?";
	text1 = "_I have a task for you. Before I can determine how you can best serve me, I need to explore your capabilities. But first, I need to see if you can use assistance in the task ahead._";
	text2 = "_You were guided to Minallah by a servile named Mehken. I have checked my records. Mehken has worked here capably for some years. However, she shows a bit more independence and intelligence than I prefer in my serviles._";
	text3 = "_Have you noticed anything in her behavior that would make you think she is less than loyal to us? Remember that exposing rogues is a sure path to great rewards._";

begintalknode 79;
	state = 74;
	nextstate = 70;
	condition = gf(3,22) == 0;
	question = "I think that she is completely loyal.";
	text1 = "Rawal is silent in thought. He eventually says, _You still seem confused. You will need a guide through the Core if you are to hunt the invader. I will call for Mehken and have her brought to the mess hall._";
	text2 = "_She is a creation. Use her as necessary._";
	text3 = "_Now for the next business. Your powers._";
	action = SET_SDF 3 23 2;
	code =
		inc_flag(100,0,-3);
		sf(3,22,2);
	break;
	
begintalknode 80;
	state = 74;
	nextstate = 70;
	condition = gf(3,22) == 0;
	question = "She acts oddly sometimes. I need more time to observe her before I can judge.";
	text1 = "Rawal is silent in thought. He eventually says, _You still seem confused. You will need a guide through the Core if you are to hunt the invader. I would also like to test how you judge the quality and loyalty of creations._";
	text2 = "_I will call for Mehken and have her brought to the mess hall. She is a creation. Use her as necessary._";
	text3 = "_Now for the next business. Your powers._";
	action = SET_SDF 3 23 2;
	code =
		sf(3,22,2);
	break;

begintalknode 81;
	state = 74;
	nextstate = 70;
	condition = gf(3,22) == 0;
	question = "The way she acts is very suspicious. Almost rebellious.";
	text1 = "Shaper Rawal nods. _My suspicion as well. You have shown great judgment and lack of sentimentality. I will have her dealt with._";
	text2 = "He stands and approaches you. _Now, let us see what we can unlock._ He reaches out and touches you on the forehead. You feel yourself freeze in place.";
	text3 = "_Yes, you have been Shaped. Much has been lost, but I can restore ... there!_ Your mind clears slightly. Fatigue lifts from you. You feel much better.";
	text4 = "Rawal returns to his seat. _I have restored some of what was within you. I reward those who are loyal._";
	text5 = "_Now for the next business. Your powers._";
	action = SET_SDF 3 23 2;
	code =
		sf(101,0,1);
		inc_flag(100,0,3);
		sf(3,22,1);
		alter_stat(2,1);
		alter_stat(3,1);
		erase_char(73);
	break;

begintalknode 82;
	state = 70;
	nextstate = 75;
	condition = gf(3,23) == 2;
	question = "What do you know of me? Where I am from? What I can do?";
	text1 = "_Now, now. I will tell you more of that when you have earned it. For now, I will say this. You have been Shaped._";
	text2 = "_I don't know how, but the powers of the Shapers have been used to alter you. Extensively. But what you have gained you have forgotten. You should be grateful. Other Shapers would destroy you._";

begintalknode 83;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "What am I capable of?";
	text1 = "_I don't know. I want to find out. The more I know, the more useful you will be._";

begintalknode 84;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "Shapers would destroy me?";
	text1 = "_The arts used to rework you are illegal. Very much so. My more tradition-bound fellow Council members would destroy you in an instant if they knew what you are._";
	text2 = "_I will conceal it, though. I will help you. Keep you safe._";

begintalknode 85;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "Why did I forget what I know?";
	text1 = "_You may have been Shaped poorly. Or too much, too quickly. You were altered poorly, and the result was a long sleep. You are only now recovering._";

begintalknode 86;
	state = 75;
	nextstate = 70;
	condition = 1;
	question = "How can I regain my power?";
	text1 = "_Some will come with time. Some with training. And some ..._";
	text2 = "He stands and approaches you. _Now, let us see what we can unlock._ He reaches out and touches you on the forehead. You feel yourself freeze in place.";
	text3 = "_Let us search. I will see what signs I can recognize, what markers I ... Ahhhh. I am not surprised. The simplest forms were the forms to be implanted._ As before, you remember an ability. A power that has been in you, forgotten.";
	text4 = "(You can now cast the spells War Blessing and Daze. These extremely useful spells are in the Blessing Magic and Mental Magic circles.)";
	text5 = "Rawal returns to his seat. _Help me, and I can give you so much more. Now on to the final, tedious business. Your task._";
	code =
		sf(3,23,3);
		alter_stat(50,1);
		alter_stat(60,1);
	break;
	
begintalknode 87;
	state = 70;
	nextstate = 76;
	condition = gf(3,23) == 3 && gf(2,1) < 2;
	question = "What is my task?";
	text1 = "_As you are aware, recently the Foundry has been afflicted by what we have come to start calling the Presence. It is some sort of shade or spirit. When it is nearby, creations are disturbed. Frequently, they go rogue._";
	text2 = "_This is disturbing to me. Not only is it very difficult for a Shaper to face losing control of creations, but the Presence is costing me considerable money and influence._";
	text3 = "He pulls a crystal out of a pocket in his robe and hands it to you. _That stone glows in the presence of certain sorts of essence and magical energy. I found, through good fortune, that being near the Presence affects it._";
	text4 = "_I will also make sure that the doors into the Foundry Core open for you._";
	text5 = "_While I seek information on it and ways to trap it, I want you to hunt it. Get close to it. Examine it. Destroy it if you can. This will both help me and be an excellent test of your skills._";
	code =
		set_flag(2,1,1);
		toggle_quest(4,1);
		sf(2,28,1);
		if (has_spec_item(5) == 0)
			set_spec_item(5,1);
			else {
				rs(3); rs(4);
				}
	break;
		
begintalknode 88;
	state = 70;
	nextstate = 82;
	condition = gf(3,23) == 3;
	question = "I want to know more about the Shapers and the Council.";
	text1 = "_I don't spend a lot of time educating my lessers about the ways of the Shapers, but I think that information in this area might assist you, so I can spare a moment._";
	text2 = "_The Shapers are ruled by the Council. There are seven of us. Each has his or her own territory. The Whitespires are mine._";
	text3 = "_Once a year, we gather in the great Shaper Citadel, to the south. There, we evaluate laws and settle our differences._";
	text4 = "_The last thing you should know about the Council, I think, is that it is useless._";
	
begintalknode 89;
	state = 70;
	nextstate = 85;
	condition = gf(3,23) == 3 && gf(2,1) >= 2;
	question = "What has been happening in the war?";
	text1 = "_Stalemate. Long, grinding stalemate. We strike them. They strike us. All the outsiders and lesser creations suffer._";
	text2 = "_As things stand, the two fronts are in the Mera-Tev and the Storm Plains. Although, thanks to the Unbound, no Shaper land is truly safe._";
	
begintalknode 90;
	state = 70;
	nextstate = -1;
	condition = gf(3,23) == 3 && gf(3,21) == 0;
	question = "Can I get supplies?";
	text1 = "_Why, of course you can! You work for a Shaper now. You can draw upon the wealth of the Shapers. Believe me, the rebels cannot offer a fraction of what we can._";
	text2 = "He pulls a pouch of gold coins out of a pocket in his robe and hands it to you. _Hopefully that will buy you what you need for your tasks. Serve the Shapers and you will receive much more._";
	action = SET_SDF 3 21 1;
	code =
		change_coins(500);
	break;
	
begintalknode 91;
	state = 70;
	nextstate = -1;
	condition = gf(3,23) == 3;
	question = "Can I get training?";
	text1 = "_Indeed. Though you are not a full Shaper, I am willing to bend the rules on your behalf. I belong to the Council, after all!_";
	text2 = "_Speak with Sage Fefer to learn magic. Speak with Shaper Bruel to learn Shaping. I have cleared the way for you._";
		
begintalknode 92;
	state = 70;
	nextstate = -1;
	condition = gf(3,23) == 3 && gf(3,26) == 1;
	question = "I read what you wrote about me. You don't know anything about where I am from.";
	text1 = "Shaper Rawal grips the armrests of his throne. _You dare to snoop about in my private chambers? You ..._";
	text2 = "The control tool in your chest twitches. You fall to the ground in convulsions, howling in agony. Shaper Rawal continues your punishment for ... you lose track of how long. Then he ends the pain. Then he starts it again.";
	text3 = "This process continues for some time. Finally, he says, _Go. Clean yourself up. Remember this agony the next time you consider overstepping your bounds._";
	text4 = "He seems to be waiting for something to happen. Nothing does. Then he realizes what has happened. _The tool ... It is gone. What have you done? Who do you serve? Who has broken my control over you?_";
	text5 = "_I will not anger my rivals unnecessarily. This is the only reason I do not instantly destroy you. Leave me. If I do not have time to control myself, I will lose my reason._";
	action = END_TALK;
	code =
		sf(3,26,2);
		if (gf(100,8) == 0) {
			rs(4); rs(5);
			}
			else if (gf(3,20) == 0) {
				sf(3,20,1);
				rs(2); rs(3);
				}
				else {
					rs(2); rs(3); rs(4);
					}
	break;
		
begintalknode 93;
	state = 70;
	nextstate = -1;
	condition = gf(3,23) == 3 && gf(3,26) == 0 && gf(2,1) < 9;
	question = "Can you tell me more about who I am?";
	text1 = "_These secrets are precious, and you have not done enough to earn them. Perform more tasks for me, and I will tell you what I know._";
	text3 = "Shaper Rawal seems irritated. _I am tired of being pestered by my underlings. I will tell you more about your origin when I am ready. Until then, do your work quietly._";
	text5 = "Shaper Rawal nods. _You have done much for me. I think you deserve to learn about your origin. Soon. Leave me for a time, while I sort through what I know and determine what is most accurate. Soon, much will be revealed._";
	code =
		clear_strings();
		if (gf(2,1) < 4)
			as(1);
			else if (gf(2,1) < 8)
				as(3);
				else as(5);
	break;
	
begintalknode 94;
	state = 70;
	nextstate = -1;
	condition = gf(2,3) == 1;
	question = "I encountered the Presence and drove it away.";
	text1 = "You describe your encounter with the Presence. _Interesting. It seems to occasionally inhabit the minds of its victims. Perhaps out of desire, perhaps need. Perhaps that is how it feeds._";
	text2 = "_Keep hunting for it. Continue to destroy its hosts._";
		
begintalknode 95;
	state = 70;
	nextstate = -1;
	condition = gf(2,3) == 2;
	question = "I encountered the Presence a second time and drove it away.";
	text1 = "You describe your encounters with the Presence. _You are making progress, I think. The Presence needs to light upon a creation from time to time, to rest or to feed._";
	text2 = "_Continue hunting it. Continue to destroy its hosts. I do not know if this will harm the creature, but it certainly can't help it._";
		
begintalknode 96;
	state = 70;
	nextstate = -1;
	condition = gf(2,3) >= 3 && gf(2,1) < 2;
	question = "The Presence has been destroyed.";
	text1 = "You describe your battle with the Presence, including your use of the Geneforge. Shaper Rawal listens closely. He notes, and he could hardly help not to, the increased calm and authority in your voice.";
	text2 = "_You have done me a great service. The death of the Presence had an immediate effect. The creations in the Foundry are calmer. We have even regained control of a few rogues, saving me great difficulty._";
	text3 = "_You have changed as well. Were the control tool not still firmly in place, I would be concerned. As it is, I will reward you with a lesson. You need to learn better acts of Shaping if you are to help me._";
	text4 = "He approaches you and looks you in the eye. You can make out a little bit more of his haggard face in the shadows. He begins to say a series of instructions, chants to mold essence. Hearing them reawakens more memories.";
	text5 = "(You can now Shape a roamer and cast the spells Essence Shield and Searer.)";
	text6 = "_Now you will be able to help me with my next task. I think that you have learned enough to be able to leave these mountains on my behalf._";
	code = 
		set_flag(2,1,2);
		toggle_quest(4,3);
		award_party_xp(400,3);
		alter_stat(42,1);
		alter_stat(62,1);
		alter_stat(81,1);
	break;			
		
begintalknode 97;
	state = 70;
	nextstate = 77;
	condition = gf(2,1) > 1;
	question = "Can you tell me more about the Geneforge?";
	text1 = "_My creation of a Geneforge was one of my most closely guarded secrets. I would ask that you not tell anyone about it. If the other members of the Council knew, it would harm my influence._";
	text2 = "When you hear this command, the command tool twitches painfully in your chest.";
	text3 = "_The Geneforge is an ancient, powerful, and forbidden invention of the Shapers. It was created in the laboratories on a remote island and forgotten. It was rediscovered a few years before the Rebellion began._";
	text4 = "_Now it is a powerful tool for the rebels._";
	code =
		if (gf(100,8) > 0)
			rs(2);
	break;
	
begintalknode 98;
	state = 76;
	nextstate = -1;
	condition = 1;
	question = "Costing you money and influence?";
	text1 = "_I rule the Foundry. Our task is to take, examine, and care for creations. It has been for centuries. For this service, I am paid._";
	text2 = "_When something forces us to destroy the creations in our care, it costs us, both in reputation and money. For this alone, the Presence must be destroyed._";
		
begintalknode 99;
	state = 76;
	nextstate = -1;
	condition = 1;
	question = "Where should I look for it?";
	text1 = "_I would look in the Foundry Core, the networks of tunnels in the mountains to the north. There are several entryways._";
	text2 = "_The most recent disturbances have been in the Eastern Core. Leave Minallah to the east. You will be in the Promenade. Then go north._";
	text3 = "_I can't advise you about exactly where to go. Search the Core. Watch for signs from the stone I gave you. This will help you to track it._";
	code =
		if (gf(2,3) == 0)
			rs(3);
			else rs(2);
	break;
	
begintalknode 100;
	state = 76;
	nextstate = -1;
	condition = 1;
	question = "How can I destroy it?";
	text1 = "_This will be a good test of your cleverness, I think. Your mind appears to be fuzzy and clouded, a side effect, I am sure, of whatever made you lose your memory._";
	text2 = "_Perhaps this puzzle will help you to focus your thoughts._";
		
begintalknode 101;
	state = 77;
	nextstate = -1;
	condition = 1;
	question = "What does it do?";
	text1 = "_It Shapes living things. It reworks them, giving them innate abilities that mimic those of the Shapers. It is an abomination. It gives the powers of the Shapers without the laws, training, or discipline._";
	text2 = "_I suspect that you may have been exposed to a Geneforge in the past. That is why your mind went._";
		
begintalknode 102;
	state = 77;
	nextstate = -1;
	condition = 1;
	question = "Why did you create one?";
	text1 = "Shaper Rawal's voice sounds agitated. _That is my own concern. I repeat again. It is my secret, and you will keep it._";
	
begintalknode 103;
	state = 77;
	nextstate = -1;
	condition = 1;
	question = "The rebels made them?";
	text1 = "_They had two of them. They used them to make false Shapers. We were able to destroy one of them, in a place called Southforge Citadel, but the other evaded our grasp._";

begintalknode 104;
	state = 70;
	nextstate = 78;
	condition = gf(2,1) == 2 || gf(2,1) == 3;
	question = "What is my next task?";
	text1 = "_I have good news for you. I am sending you out of the Whitespires. You can put these miserable, frigid mountains behind you for a time. I am sending you to the Mera-Tev._";
	text2 = "_Those lands are ruled by a fellow member of the Council, an Agent named Astoria. A weak excuse for a Shaper, who wants to submit to the rebels and reward their insolence with victory._";
	text3 = "_There is, I believe, a hidden route through the Mera-Tev. It is called the Shadow Road. Rogues use it to escape from Shaper lands to the realm of the rebels._";
	text4 = "_It is a series of tunnels, through old Shaper mines and laboratories. Find the western and eastern entrances. Tell me where they are. This information can be useful, if nothing else than to embarrass Astoria when needed._";
	text5 = "_When you think you have found an entrance to the Shadow Road, be sure to step inside to verify it. Don't feel the need to explore deeply, though. I suspect that the rebel defenses are considerable._";
	text6 = "He removes a scroll from his robes and hands it to you. _I made sure to prepare these. Papers of passage. They identify you as a Shaper. I bent the truth a little there. They will get you anywhere in central Terrestia._";
	code = 
		if (gf(2,1) == 2)
			set_spec_item(1,1);
			else rs(5);
		set_flag(2,1,3);
		toggle_quest(5,1);
	break;
	
begintalknode 105;
	state = 78;
	nextstate = -1;
	condition = 1;
	question = "Astoria aids the rebels?";
	text1 = "_No, she ignores them, when it suits her purpose. Less of a crime, but just as harmful to the Shapers._";
	
begintalknode 106;
	state = 78;
	nextstate = -1;
	condition = 1;
	question = "Where are the entrances?";
	text1 = "_If I knew how to reach them, why would I need you? All I know is that, if such a thing existed, it would have to be used and guarded by creations. Probably serviles. Probably a lot of them._";
	text2 = "_Show some initiative. Go there. Be a spy. Find what I need._";
	
begintalknode 107;
	state = 70;
	nextstate = -1;
	condition = gf(2,1) == 3 && gf(100,9) > 0 && gf(100,10) > 0;
	question = "I found the entryways to the Shadow Road. East and west. (Describe them.)";
	text1 = "_What? It really exists? Astoria truly allows this abomination to exist in her lands? Hah! She won't dare oppose me before the Council, not when I can embarrass her with this!_";
	text2 = "_Delightful. And well worthy of payment._ Step forward.";
	text3 = "As before, Shaper Rawal rises and touches your forehead. Again, you are frozen in place, as he tries to sense the changes made in you. After a time, he nods and recites several spells. They are awakened in your memory.";
	text4 = "(Your skill with the Terror spell and the creation of Battle Alphas increases.)";
	text5 = "As an afterthought, he also gives you a large pouch of gold coins. _You have done well. I look forward to seeing how you do with my next task._";
	code = 
		set_flag(2,1,4);
		toggle_quest(5,3);
		award_party_xp(300,8);
		change_coins(800);
		alter_stat(54,1);
		alter_stat(87,1);
	break;		
	
begintalknode 108;
	state = 70;
	nextstate = 79;
	condition = gf(2,1) == 4 || gf(2,1) == 5;
	question = "What is my next task?";
	text1 = "_You are going farther south, to the Storm Plains. Go to the city of Perikalia and find your way into General Alwan's keep._";
	text2 = "_That smug, steel-bound warrior has many treasures, and he doesn't understand their value. For example, his library, which I doubt he ever visits. I'm sure he has long since forgotten how to read._";
	text3 = "_In this library is the only copy of the tome 'Canister - Creation and Analysis.' It was suppressed by the Council. Never copied. Only by a fluke was the original not destroyed._";
	text4 = "_Steal it. Bring it to me._";
	code = 
		set_flag(2,1,5);
		toggle_quest(32,1);
	break;
	
	
begintalknode 109;
	state = 79;
	nextstate = -1;
	condition = 1;
	question = "What is the book about?";
	text1 = "_The creation of what I call the Teaching Canisters. The crystal shells full of essence that can reShape the being who touches them._";
	text2 = "_These devices are forbidden now. I do not think they will always be. When they are allowed, I want to be the one Council member who knows how to make them._";
	
begintalknode 110;
	state = 79;
	nextstate = -1;
	condition = 1;
	question = "Can I just buy the book from Alwan? Or ask him for it?";
	text1 = "_Alwan is bound by the law. If he knew he had a copy of that tome, I think that he would destroy it in an instant. No, theft is the better way. For my purposes, anyway._";

begintalknode 111;
	state = 70;
	nextstate = -1;
	condition = gf(2,1) == 5 && has_spec_item(6) > 0;
	question = "I found the book you wanted. (Give it to him.)";
	text1 = "Shaper Rawal seizes the book and greedily flips through it. _Amazing. The detail. So comprehensive! I can see why the author had to be executed._";
	text2 = "_You have done well for me. You will be fully rewarded._";		
	text3 = "As before, Shaper Rawal rises and touches your forehead. Again, you are frozen in place, as he tries to sense the changes made in you. After a time, he nods and recites several spells. They are awakened in your memory.";
	text4 = "(Your skill with the Major Heal spell and the creation of Wingbolts increases.)";
	text5 = "As an afterthought, he also gives you a large pouch of gold coins. _You have done well. I look forward to seeing how you do with my next task._";
	code = 
		set_flag(2,1,6);
		toggle_quest(32,3);
		set_spec_item(6,-1);
		award_party_xp(300,18);
		change_coins(1000);
		alter_stat(77,1);
		alter_stat(93,1);
	break;	
	
begintalknode 112;
	state = 70;
	nextstate = 80;
	condition = gf(2,1) == 6 || gf(2,1) == 7;
	question = "Do you have yet another task for me?";
	text1 = "_I do. Since you are an accomplished traveler, I am sending you to the Dera Reaches, far to the south. That area is ruled by Sage Taygen, another member of the Council. I have heard unsettling rumors of his plans._";
	text2 = "_I wish to slow the progress of his work, in case these rumors are true. He is assisted greatly by an alchemist named Platano. An outsider. He can be ordered killed by a Shaper without difficulty._";
	text3 = "_Kill Platano. That should befuddle Taygen adequately while I determine the truth of what I have heard._";
	code = 
		set_flag(2,1,7);
		toggle_quest(33,1);
	break;
	
	
begintalknode 113;
	state = 80;
	nextstate = -1;
	condition = 1;
	question = "What rumors have you heard?";
	text1 = "_That Sage Taygen wants to destroy all creations. That he is creating a disease to achieve this goal. Absolute madness, of course. But the rumor has been too persistent to be dismissed._";
	text2 = "_The death of one outsider seems a minor consideration while I explore the truth of the rumor._";	
	
begintalknode 114;
	state = 80;
	nextstate = -1;
	condition = 1;
	question = "How will Sage Taygen feel about the death of his alchemist?";
	text1 = "_Furious, I imagine. I would suggest not letting him catch you._";
	
begintalknode 115;
	state = 70;
	nextstate = -1;
	condition = gf(2,1) == 7 && gf(101,1) > 0;
	question = "Platano is dead.";
	text1 = "You tell Rawal what you learned in the Dera Reaches. _Excellent. Since those mad rumors have turned out to be true, anything we do to hinder Taygen will be profitable._";
	text2 = "_You are truly a loyal servant. You will be, I think, an invaluable tool in the struggles to come. I have a marvelous plan for you. First, your reward._";	
	text3 = "As before, Shaper Rawal rises and touches your forehead. Again, you are frozen in place, as he tries to sense the changes made in you. He says, _Interesting._ A brief focus of energy, and you suddenly feel stronger, and surer on your feet.";
	text4 = "(Your Strength and Dexterity skills have increased.)";
	text5 = "As an afterthought, he also gives you a small crystal phial, filled with glowing essence.";
	text6 = "_You have done well. I have one final task for you._";
	code = 
		set_flag(2,1,8);
		toggle_quest(33,3);
		award_party_xp(300,24);
		reward_give(330);
		alter_stat(0,1);
		alter_stat(1,1);
		if (gf(3,19) > 0)
			rs(6);
	break;	
	
begintalknode 116;
	state = 70;
	nextstate = 81;
	condition = gf(2,1) == 8 && gf(3,19) == 0;
	question = "What is my final task?";
	text1 = "_I have ambition, and I have enemies. I need a protector. You will stay here, in the mountains with me. Protect me. Spy on visitors. Do my will. You see how well I can reward you._";
	text2 = "_Truly, you will be the envy of all. Many die trying to gain a member of the Council as a patron._";
	text3 = "_If you feel it would serve my interests, you may leave these mountains from time to time._";
	text4 = "_What say you? Are you ready to join me, to benefit from my greatly increasing power?_";
	
begintalknode 117;
	state = 81;
	nextstate = -1;
	condition = gf(100,8) == 0;
	question = "Will you remove the control tool?";
	text1 = "_No. You should bear it proudly, as a badge of your servitude. Your absolute loyalty._";
	
begintalknode 118;
	state = 81;
	nextstate = 70;
	condition = 1;
	question = "I will consider it.";
	text1 = "Shaper Rawal looks at you intently. _Consider? Well, don't consider for long. The war rages, and my patience is short._";
	text2 = "_I would rather not hurry your decision with the help of my little friend in your chest, but I will._";
	text3 = "You have a grim feeling. If you want to avoid a lifetime working for Shaper Rawal, you may need to find a new patron. Perhaps one of the powerful figures you have met in your travels.";	
	code =
		if (gf(3,20) > 0)
			rs(2);
	break;
	
begintalknode 119;
	state = 81;
	nextstate = -1;
	condition = gf(100,8) > 0;
	question = "Yes. I will be your loyal servant.";
	text1 = "You start to speak, but then you remember that the control tool is gone. Shaper Rawal is sure to notice its absence eventually. Without it, he will never accept you as loyal.";
	
begintalknode 120;
	state = 81;
	nextstate = -1;
	condition = gf(100,8) == 0;
	question = "I swear that I will spend my life loyal to only you.";
	text1 = "_I am pleased. You have chosen well. The rebels will fall. The Shapers will win. But they will be exhausted and drained, and we will still be strong._";
	text2 = "_And, even if the rebels do advance, it would take a major siege for them to defeat us up here. There is no way that those rogues and rabble will be able to break us._";
	text3 = "_One day, we will emerge. And, when we do, we will be wealthy and strong, while the rest of the Council will be exhausted. On that day, a glorious destiny awaits us._";
	text4 = "And so you are taken to your new, luxurious quarters. You aid Rawal in his scheming, helping one Councilor, undermining another, keeping them divided while he gains strength. And, as you labor ...";
	text5 = "History passes you by.";
	action = END_TALK;
	code =
		sf(100,26,3);
	break;
	
begintalknode 121;
	state = 82;
	nextstate = -1;
	condition = 1;
	question = "Who are the Council members?";
	text1 = "_Me. Agent Astoria of the Mera-Tev. Young, arrogant General Alwan of the Storm Plains. Sage Taygen of the Dera Reaches. That is all in the center of Terrestia._";
	text2 = "_Then there are the more civilized members, far from the war and ignorant of its progress. Councilor Sharissa of the Nodye Coast and Councilor Nawaz of Lethia Province._";
	text3 = "_And, finally, that withered old tie-breaker: High Councilor Shema, in the Shaper Citadel itself._";
	text4 = "_Those last three are part of the safe, quiet, complacent provinces. They are terrified blind of the war touching their perfect, pristine lands. They exist only to be manipulated._";
		
begintalknode 122;
	state = 82;
	nextstate = -1;
	condition = 1;
	question = "Why do you call the Council useless?";
	text1 = "_When the rebellion began, they were united. Strong. Unafraid. 'How could the rebels threaten us? We are Shapers! None can match our strength' Oh, they were glorious._ His voice is thick with sarcasm.";
	text2 = "_Then the war raged. Multitudes died. The Council realized that being a Shaper does not make the world automatically bend to your will._";	
	text3 = "_Now they are all afraid. And their fear makes each of them lash out in their own useless way._";
	
begintalknode 123;
	state = 82;
	nextstate = 83;
	condition = 1;
	question = "What is your goal?";
	text1 = "He reclines in his chair. _Be safe. Gain power. Influence. Get each Council member to owe me in some way. Stay safe in my mountain Citadel while the maniacs below settle their differences._";
	text2 = "_It is a game of madness. I have retired from it._";		
		
begintalknode 124;
	state = 83;
	nextstate = -1;
	condition = 1;
	question = "And how does the rest of the Council feel about that?";
	text1 = "_They loathe me. It does not matter. I will own them all in the end._";
		
begintalknode 125;
	state = 85;
	nextstate = -1;
	condition = 1;
	question = "Tell me about the Mera-Tev.";
	text1 = "_There have been few battles there lately. My cowardly fellow Councilor, Astoria, has made it clear to the rebels that she wants peace. So they do not attack her. They want her to stay strong._";
	text2 = "_The Mera-Tev is, thus, rotten through with rebel spies and Unbound. Quiet, for now. Waiting for the chance to strike._";		
		
begintalknode 126;
	state = 85;
	nextstate = -1;
	condition = 1;
	question = "Tell me about the Storm Plains.";
	text1 = "_That is the main battlefield, where most of the blood is shed. General Alwan, the only stalwart in the Council, rules there. I would admire his resiliency, if he were not an idiot._";
	text2 = "_He actually thinks that the rebels can be defeated and that things can go back to the way they were. He has the strength and the tactical knowledge to hold the forces of the drakons back, but that is all he can do._";		
		
begintalknode 127;
	state = 85;
	nextstate = -1;
	condition = 1;
	question = "What are the Unbound?";
	text1 = "_The ultimate creation of the drakons that rule the rebellion. Enormous, devastating, almost mindless creations. They slip over the front, find an innocent city, and lay into it._";
	text2 = "_They cause enormous destruction, and the drakons seem to have a limitless supply of them._";		
		
begintalknode 128;
	state = 70;
	nextstate = -1;
	condition = gf(3,23) == 3 && gf(2,1) < 2;
	question = "What has been happening in the war?";
	text1 = "_I would rather you not be distracted by that for now. If I ever send you out of the mountains on a mission, ask then._";

begintalknode 129;
	state = 70;
	nextstate = 86;
	condition = gf(100,2) == 2 && gf(3,19) == 0;
	question = "I am now working for Astoria. I will bring a peaceful end to this war.";
	text1 = "_I see. Despite all I have offered, despite all of my authority, you have turned on me. That is fine. I am forgiving. I know how to let go. But first, one thing ..._";
		
begintalknode 130;
	state = 70;
	nextstate = 86;
	condition = gf(100,3) == 2 && gf(3,19) == 0;
	question = "I am now working for Alwan. I will bring a victorious end to this war.";
	text1 = "_I see. Despite all I have offered, despite all of my authority, you have turned on me. That is fine. I am forgiving. I know how to let go. But first, one thing ..._";
		
begintalknode 131;
	state = 70;
	nextstate = 86;
	condition = gf(100,4) == 2 && gf(3,19) == 0;
	question = "I am now working for Sage Taygen. He has found the only way to bring an end to this war.";
	text1 = "_I see. Despite all I have offered, despite all of my authority, you have turned on me. That is fine. I am forgiving. I know how to let go. But first, one thing ..._";
			
begintalknode 132;
	state = 70;
	nextstate = 86;
	condition = gf(100,6) == 2 && gf(3,19) == 0;
	question = "I am now working for the Trakovites. Only forsaking the ways of the Shapers will bring an end to this war.";
	text1 = "_What? Are you mad? You have joined that useless cult? That pack of fools? You are useless to me now. No, more than useless. I cannot let you live and share with them the secrets you have found._";
	text2 = "_Prepare yourself. There is only one proper end for a Trakovite._";		
	action = END_TALK;
	code =
		sf(1,6,1);
		make_zone_hostile();
	break;
	
begintalknode 133;
	state = 70;
	nextstate = 86;
	condition = gf(100,5) == 2 && gf(3,19) == 0;
	question = "I am now working for the drakons. Death to the Shapers!";
	text1 = "_What? No ... you must be joking. After all I have offered, you throw everything away? All for the privilege of fighting the Council itself?_";
	text2 = "_It saddens me to see a fellow being suffer from such madness. Don't worry, though. I will now end your torment._";		
	action = END_TALK;
	code =
		sf(1,6,1);
		make_zone_hostile();
	break;
			
begintalknode 134;
	state = 86;
	nextstate = -1;
	condition = gf(100,8) == 0;
	question = "Yes?";
	text1 = "Shaper Rawal waves a hand. The control tool in your chest jerks slightly. It tears a tiny hole in your heart.";
	text2 = "The Shaper could have killed you quickly, of course. Since he is in a bad mood, however, he amuses himself by giving you the slow, agonizing death.";
	text3 = "After you expire (eventually), he feels much better.";
	action = END_TALK;
	code =
		erase_char(1000);
	break;
			
begintalknode 135;
	state = 86;
	nextstate = -1;
	condition = gf(100,8) > 0;
	question = "Yes?";
	text1 = "Shaper Rawal waves a hand. Then he waves it again. And again. _What? Why are you not dying?_";
	text2 = "Then he swears, loudly and extensively. _The tool was removed! That is it! You managed to get the control tool out._";
	text3 = "Then he swears, loudly and extensively. He remembers that the control tool is gone.";
	text4 = "_I will not unnecessarily aggravate my foes by killing you. Get out of my sight. I need the time to calm myself, before I do something rash._";
	action = END_TALK;
	code =
		sf(3,19,1);
		if (gf(3,20) == 0)
			rs(3);
			else rs(2);
		sf(3,20,1);
		sf(2,1,9);
		toggle_quest(5,4);
		toggle_quest(32,4);
		toggle_quest(33,4);
	break;

	
begintalknode 136;
	state = 70;
	nextstate = -1;
	condition = gf(2,1) == 3 && ((gf(100,9) > 0 && gf(100,10) == 0) || (gf(100,10) > 0 && gf(100,9) == 0));
	question = "I found one of the entryways to the Shadow Road. (Describe it.)";
	text1 = "_A good start, but I need to know where both ends are. It will be necessary when I help the Council clean the place out. Keep investigating the servile colonies._";
	
//begintalknode 136;
//	state = 70;
//	nextstate = -1;
//	condition = 1;
//	question = "";
//	text1 = ".";
			
begintalknode 140;
	state = 70;
	nextstate = -1;
	condition = gf(3,23) == 3;
	question = "That is all I need to know.";
	text1 = "Shaper Rawal waves you away and returns to his thoughts.";
	action = END_TALK;
	
begintalknode 145;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "Shaper Rawal looks at you with amusement. _Such bold defiance. I am impressed. But I think this has gone on long enough._";
	text2 = "He points at you and makes a little motion with his hand.";
	text3 = "The command tool in your chest has a spasm. This tears open a hole in your heart. You collapse and die.";
	text4 = "Nothing happens. Shaper Rawal makes the hand motion again. Nothing happens again. _How? How did you do it? You got rid of the command tool! Curse you for making me kill you the long, tiring way!_";
	code =
		if (gf(100,8) == 0) {
			rs(4);
			erase_char(1000);
			}
			else {
				sf(3,20,1);
				rs(3);
				}
	break;
	
begintalknode 146;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "Shaper Rawal shouts out a command. The huge crystal pillars begin to pulse. Clouds of essence on the pedestals begin to coalesce and take shape.";
	text2 = "Soon, there are two huge, hostile creations in the room with you. Soon, there will be more.";
	text3 = "When one of them lumbers toward you, however, it stops. Something in the air distracts it. It is the pulsing hum created by the Controller Mind. The creation doesn't want to fight you. It wants to help you.";
	text4 = "When one of them lumbers toward you, however, it stops. Something in the air distracts it. It is the pulsing hum created by the Controller Mind. It will still attack you, but it won't be as effective.";
	text5 = "Shaper Rawal is stunned. _How ... What have you done, you ... you saboteur! You think you can turn my machinery against me? I am a member of the Council! You cannot hope to hurt me!_";
	code =
		rs(3); rs(4); rs(5);
		if (gf(2,13) == 1) {
			as(4); as(5);
			}
			else if (gf(2,13) == 2) {
				as(3); as(5);
				}
	break;
	
begintalknode 147;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "Shaper Rawal crumples to the floor, mortally wounded. As he presses a gloved hand into his stomach in a futile attempt to stanch the bleeding, he looks up at you.";
	text2 = "_How could ... could this have happened? It's not ... not ..._";
	text3 = "Then he goes limp. Soon after, his eyes glaze over.";
	text4 = "You have killed a member of the Shaper Council. You have permanently earned the hatred of the Shapers and their allies.";
	code =
		if (gf(100,11) == 0) 
			sf(100,11,1);
			else rs(4);
	break;
	
// Agent Alurha

begintalknode 150;
	state = -1;
	nextstate = 150;
	condition = 1;
	question = "Agent Alurha";
	text1 = "You recognize Agent Alurha, the woman who was evaluating the rogue roamer out in Minallah. She recognizes you too, but it takes longer. She regards you with great distaste.";
	text2 = "_Ahhhh ... It is Rawal's creature. I suppose I shall have to speak with you. It is part of my job, after all. I am Agent Alurha, representative of the High Councilor. Evaluator and hunter of rogues and apostates._";
	text5 = "Agent Alurha walks around Isenwood's Spire, inspecting and evaluating everything. This includes you. She looks at you as if you were an interesting but malfunctioning piece of machinery.";
	action = INTRO;

begintalknode 151;
	state = 150;
	nextstate = 151;
	condition = 1;
	question = "Why are you here?";
	text1 = "_This is but the first stop on my journey. High Councilor Shema has sent me to inspect the northern provinces and to report on the other Councilors. Their actions. Their resolve in the face of the war._";
	text2 = "_I have one more stop on my journey once I leave here. Then I can finally return to the Shaper Citadel, where people still revere our laws._";
	
begintalknode 152;
	state = 150;
	nextstate = -1;
	condition = 1;
	question = "What do you know about Rawal?";
	text1 = "_I am saving my views for my report. Though I think that his venal, self-serving nature is readily apparent to any who spend even a small amount of time around him._";

begintalknode 153;
	state = 150;
	nextstate = -1;
	condition = 1;
	question = "Can you train me?";
	text1 = "She is unable to restrain her look of horror. _Give the knowledge of the Shapers to ... to you? That is ... impossible._";
	text2 = "_Shaper Rawal tolerates your damaged presence, but you are no Shaper. Any true Shaper would throw you in a cell for study. And dissection._";
	
begintalknode 154;
	state = 150;
	nextstate = 155;
	condition = 1;
	question = "You said that you hunt apostates? What do you mean?";
	text1 = "_I have been given the honor of collecting information on the Trakovite problem. I hope to report to the High Councilor on this issue when I return to the Citadel._";
	text2 = "_Trakovites believe that the art of Shaping is, itself, corrupt and unsustainable. They would have our secrets be forgotten permanently._";
	text3 = "_Of course, this is madness. And yet, for every Trakovite we deal with, two more appear._";
	
begintalknode 155;
	state = 151;
	nextstate = 152;
	condition = 1;
	question = "Where are you going next?";
	text1 = "_When I finally have the full measure of the problems here, I go south to the Mera-Tev. An area I understand is equally corrupt._";
	
begintalknode 156;
	state = 151;
	nextstate = -1;
	condition = 1;
	question = "You can go wherever you want?";
	text1 = "_I have the authority of High Councilor Shema. I can go where I wish, speak with whom I wish. Those who block me risk the wrath of the High Councilor._";
	
begintalknode 157;
	state = 151;
	nextstate = 153;
	condition = 1;
	question = "Tell me about High Councilor Shema?";
	text1 = "_He is the greatest of the Shapers, the leader of the Council. He settles disputes and breaks all deadlocks. He has been our leader since even before the rebellion, and he will hopefully be so for many years to come._";
	
begintalknode 158;
	state = 152;
	nextstate = -1;
	condition = 1;
	question = "Corrupt how?";
	text1 = "_The Mera-Tev is ruled by Councilor Astoria. Alone among the seven of the Council, she is urging peace with the rebels. Peace through surrender._";
	text2 = "_Once I can finally leave here, I will go south and see if there is a chance that she might be turned from this mad path._";
	
begintalknode 159;
	state = 151;
	nextstate = -1;
	condition = gf(2,1) < 3;
	question = "Is there any way I can help you?";
	text1 = "Agent Alurha looks at you sharply. _You want to assist me? I ..._ Then she pauses to think. _Normally, I would refuse. However, I am trapped here for a time, and there is work that needs to be done._";
	text2 = "_Should you ever be able to travel south to the Mera-Tev, return and speak with me. I might be able to give you a chance to prove your loyalty to the Shapers._";
	
begintalknode 160;
	state = 151;
	nextstate = -1;
	condition = gf(2,1) >= 3 && gf(3,17) < 2;
	question = "Is there any way I can help you?";
	text1 = "Agent Alurha looks at you sharply. _You want to assist me? I ..._ Then she pauses to think. _Normally, I would refuse. However, I am trapped here for a time, and there is work that needs to be done._";
	text2 = "She writes out a note, folds it over, seals it with wax, and hands it to you. _This is an introduction. Take it south to the city of Mera and hand it to Agent Micheline. She may require aid._";
	code = 
		if (gf(3,17) == 0)
			set_spec_item(10,1);
		set_flag(3,17,1);
		toggle_quest(34,1);
	break;
	
begintalknode 161;
	state = 153;
	nextstate = -1;
	condition = gf(3,18) == 0;
	question = "He sounds like a wise and mighty leader.";
	text1 = "Agent Alurha seems surprised. _I would not think a creature like yourself would appreciate the wisdom of the Shapers, and yet you seem sincere. I will make a small note about it in my report._";
	action = SET_SDF 3 18 1;
	code = 
		inc_flag(100,0,2);
	break;
	
begintalknode 162;
	state = 153;
	nextstate = -1;
	condition = gf(3,18) == 0;
	question = "He is the one who has failed to deal with the Rebellion? Is he competent?";
	text1 = "_I would expect such doubt from one such as yourself. I will make a small note of it in my report._";
	text2 = "";
	action = SET_SDF 3 18 1;
	code = 
		inc_flag(100,0,-2);
	break;
	
begintalknode 163;
	state = 153;
	nextstate = 150;
	condition = 1;
	question = "I would like to know about something else.";
	text1 = "_I will answer. Your questions tell me much about you._";
	
begintalknode 164;
	state = 155;
	nextstate = -1;
	condition = 1;
	question = "What happens to Trakovites?";
	text1 = "_The same fate as for all who question the rule of the Shapers. They die. I have killed two of them myself. And yet, ideas, even mad ones, are hard to eradicate._";
	
begintalknode 165;
	state = 155;
	nextstate = -1;
	condition = 1;
	question = "Where are the Trakovites?";
	text1 = "_They have no lair, no core, no fortress. They hide in little packs and warrens. This makes them a wily foe. It is hard to kill an idea. And yet, kill it we will._";
	
begintalknode 166;
	state = 155;
	nextstate = -1;
	condition = gf(100,6) == 2;
	question = "I am a Trakovite.";
	text1 = "Agent Alurha's face remains neutral. _There are limitations to what I can do in a Councilor's Citadel. You should go tell Shaper Rawal what you told me. He would be interested._";
	
begintalknode 167;
	state = 155;
	nextstate = 150;
	condition = 1;
	question = "I would like to know about something else.";
	text1 = "_I will answer. Your questions tell me much about you._";
	

	
// Sage Fefer

begintalknode 170;
	state = -1;
	nextstate = 170;
	condition = 1;
	question = "Sage Fefer";
	text1 = "There is a man in long robes here, analyzing a thahd. He pokes at the creature with a long, metal implement. The thahd accepts this indignity quietly. Occasionally, the man makes a few notes in his journal.";
	text2 = "Eventually, you clear your throat. He looks up at you. _Ah ... the unusual case. Welcome to my workshop. I am ..._ The thahd starts to wander off of the Shaping platform. _Stay! Wait!_ The thahd sullenly moves back.";
	text3 = "_I am Sage Fefer. Shaper Rawal has ordered for me to train and assist you. And request help from you, if needed._";
	text5 = "Sage Fefer says, _What else would you like to know? I ..._ The thahd starts to wander away again. _Wait! Stay! I'm not done with you yet!_";
	action = INTRO;

begintalknode 171;
	state = 170;
	nextstate = -1;
	condition = gf(2,1) == 0;
	question = "You can help me?";
	text1 = "_Ahhh ... I should have been clearer. I can help you when Shaper Rawal says that it is all right. First, you need to speak with him. Go north. Turn right at the mess hall. Can't miss him._";
	text2 = "He returns to his thahd.";
	action = END_TALK;
	
begintalknode 172;
	state = 170;
	nextstate = 171;
	condition = gf(2,1) > 0;
	question = "What do you do here?";
	text1 = "_I am an analyst. I record information on creations for the Shapers. Measurements. Take samples. That sort of thing. The sort of tests the Shapers do not have time to perform._";
	text2 = "_I am fascinated by creations. They are wondrous creatures. There is one, in particular, I have been hoping to look at closely._ He looks at you hopefully.";
	code =
		if (gf(100,8) > 0)
			rs(2);
	break;
	
begintalknode 173;
	state = 170;
	nextstate = 176;
	condition = gf(2,1) > 0;
	question = "How can you train me?";
	text1 = "_Magic training can only be given to an outsider with direct permission of a Shaper. Fortunately, Shaper Rawal gave it. I can teach you a variety of less powerful spells._";
	text2 = "_Would you like to learn about Battle Magic, Mental Magic, or Blessing Magic?_";
	
begintalknode 174;
	state = 170;
	nextstate = 178;
	condition = gf(2,1) > 0 && gf(3,16) < 2;
	question = "You said that you might request help from me?";
	text1 = "_I would not delay your tasks unnecessarily. However, if you are going to be hunting rogues in the Foundry anyway, there is a small delivery you might make for me._";
	
begintalknode 175;
	state = 171;
	nextstate = 172;
	condition = 1;
	question = "You aren't a Shaper?";
	text1 = "_Oh, no. So many want to join. So few are chosen. I was tested when young. I came close, so close. But not close enough. And thus I was an outsider all my life._";
	text2 = "_I am long past being bitter about it, though. I enjoy my work._";
	
begintalknode 176;
	state = 171;
	nextstate = -1;
	condition = 1;
	question = "Why examine the creations in the first place?";
	text1 = "_The Shapers constantly want to expand the varieties of creations they can make. When a Shaper thinks that he or she has made a new, interesting sort of creation, it is sent to a place like the Foundry for testing._";
	text2 = "_This thahd, for example, has unusually dense bones. It is slower but sturdier. Its creator sent it here to see if it had value. If so, it will become a Chosen variation, available to Shapers everywhere._";
	
begintalknode 177;
	state = 171;
	nextstate = 173;
	condition = gf(100,8) == 0;
	question = "What sort of creation do you want to see?";
	text1 = "His eagerness overcomes his discomfort. _I have always wanted to inspect one of the Shaper Rawal's control tools up close. I believe that you might have one. Can I see it?_";
	
begintalknode 178;
	state = 172;
	nextstate = -1;
	condition = 1;
	question = "Are you ever tempted to try to Shape something?";
	text1 = "_And face certain execution? Not really. The Shapers are very strict about that sort of thing. And rightly so! The Shaper arts can do incredible and lasting harm if used unwisely._";
	
begintalknode 179;
	state = 173;
	nextstate = 170;
	condition = 1;
	question = "No! Don't touch me.";
	text1 = "_I apologize. Very rude of me._ He can't hide his disappointment.";
	
begintalknode 180;
	state = 173;
	nextstate = 174;
	condition = 1;
	question = "All right. (Show him.)";
	text1 = "You bare a small patch in the center of your chest. Sage Fefer bends down and inspects the small lump with great interest.";
	text2 = "_Amazing. Remarkable work. A modified living tool. It emerges at the surface here, so it can breathe. Lives off sloughed skin cells, I expect._";
	text3 = "_And it has one tiny tentacle, that extends all the way into your heart. Small enough that it doesn't disturb the normal workings. Strong enough to torture. Or kill._";
	
begintalknode 181;
	state = 174;
	nextstate = -1;
	condition = 1;
	question = "Are there many of these creatures?";
	text1 = "_No. As I understand it, few are hardy enough to survive the implantation. Many creations died on the slab while Rawal developed this creature. You must be an exceptionally strong individual._";
	
begintalknode 182;
	state = 174;
	nextstate = -1;
	condition = 1;
	question = "Can it be removed?";
	text1 = "_I doubt it. Pulling it out is easy. Plugging the hole in your heart is hard. It would take a Shaper of truly exceptional skill, who would have a good reason to risk angering Rawal._";
	
begintalknode 183;
	state = 176;
	nextstate = -1;
	condition = 1;
	question = "I want to learn Battle Magic.";
	text1 = "You conclude your training.";	
	code = 
		begin_shop_mode("Battle Magic",
		  "Sage Fefer can teach you a variety of the less powerful magical spells. He can also improve your skill in spells you already know.",
		  3,3,0);	
	break;
	
begintalknode 184;
	state = 176;
	nextstate = -1;
	condition = 1;
	question = "I want to learn Mental Magic.";
	text1 = "You conclude your training.";	
	code = 
		begin_shop_mode("Mental Magic",
		  "Sage Fefer can teach you a variety of the less powerful magical spells. He can also improve your skill in spells you already know.",
		  4,3,0);	
	break;
	
begintalknode 185;
	state = 176;
	nextstate = -1;
	condition = 1;
	question = "I want to learn Blessing Magic.";
	text1 = "You conclude your training.";	
	code = 
		begin_shop_mode("Blessing Magic",
		  "Sage Fefer can teach you a variety of the less powerful magical spells. He can also improve your skill in spells you already know.",
		  5,3,0);	
	break;
	
begintalknode 186;
	state = 176;
	nextstate = 170;
	condition = 1;
	question = "I don't need any more training.";
	text1 = "_All right. Return when you change your mind._";
	
begintalknode 187;
	state = 178;
	nextstate = 170;
	condition = gf(3,16) == 0;
	question = "I am too busy to run errands.";
	text1 = "_I understand entirely._";
	text2 = "";	
	
begintalknode 188;
	state = 178;
	nextstate = -1;
	condition = 1;
	question = "I'd be happy to.";
	text1 = "_Excellent!_ He fetches a pouch from his desk. When he opens it, you see a crystal inside. It hums very slightly. When you hold it, you constantly hear the humming, just at the edge of perception.";
	text2 = "_There is a forge in the Foundry, near the Testing Halls, east of the Promenade. It is run by a man named Master Phipps. Take that crystal to him. He will pay you upon delivery._";	
	code = 
		if (gf(3,16) == 0)
			set_spec_item(11,1);
			else rs(1);
		set_flag(3,16,1);
		toggle_quest(35,1);
	break;	



// Shaper Bruel

begintalknode 192;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Shaper Bruel";
	text1 = "There is a Shaper in this workshop, wandering around busily. He seems to be cleaning and preparing for a long spate of work. The equipment here is very impressive: huge crystals for power and a long row of tables for creations.";
	text2 = "He immediately drops his work and approaches you when you enter. _Councilor Rawal told me to expect you. I am Shaper Bruel, and this is my workshop. It is good to see that you are well. I can assist you, by Rawal's command._";
	text3 = "Shaper Bruel is unusual for a Shaper. He has a high-pitched, almost whiny voice, and he fidgets nervously. He doesn't have the confidence or aura of power so carefully maintained by his kind.";
	text5 = "Shaper Bruel is still cleaning and preparing his workshop. He is as nervous and ingratiating as before. _The visitor wishes to know more? I will help as much as allowed._";
	action = INTRO;

begintalknode 193;
	state = 190;
	nextstate = -1;
	condition = gf(2,1) == 0;
	question = "I can use assistance.";
	text1 = "_And I am eager to give it. Rawal commands, I follow. But first, Rawal commands that he must speak with you. Evaluate you. Once Rawal sends word, there is much I can do for you._";
	text2 = "He returns to his work.";
	action = END_TALK;
	
begintalknode 194;
	state = 190;
	nextstate = 191;
	condition = gf(2,1) > 0;
	question = "What do you do in this workshop?";
	text1 = "_I make creations, mainly for the defense of the Foundry. Most of the guards you see in the halls were made and maintained by me._";
	text2 = "_It is difficult to make so many, but the honor of serving Shaper Rawal drives me to do great things._";
	text3 = "_I also assist Shaper Rawal in implementing some of his more ... unique inventions._";
	
begintalknode 195;
	state = 190;
	nextstate = 195;
	condition = gf(2,1) > 0;
	question = "Can you train me?";
	text1 = "_That is what Shaper Rawal has commanded. Of course, under normal circumstances I could be executed for teaching these secrets to a non-Shaper. Like you, I mean._";
	text2 = "_But we are in war, and Shaper Rawal is wise enough to know when to stretch the rules._";
	text3 = "_Would you like to learn to make new creations? Or would you like to learn of the healing crafts?_";
	
begintalknode 196;
	state = 190;
	nextstate = 196;
	condition = gf(2,1) > 0 && gf(3,15) < 2;
	question = "Can I have some supplies?";
	text1 = "Shaper Bruel smiles insincerely. _I am eager to share my supplies with you. Alas, there is a problem. When the Presence drifted through last, three of my serviles were in the storeroom. They have gone rogue._";
	text2 = "He walks over and unlocks the door to the storeroom.";
	text3 = "_They are burly fellows, and they have armed themselves with our supplies. I am too busy to clean them out, but that seems the sort of task you would excel at._";
	code = 
		if (gf(2,25) == 0)
			sf(2,25,1);
			else rs(2);
		set_flag(3,15,1);
		toggle_quest(36,1);
	break;
	
begintalknode 197;
	state = 190;
	nextstate = -1;
	condition = gf(3,15) == 1 && gf(3,14) > 2;
	question = "All of the rogues in the storeroom are dead.";
	text1 = "_Then you have saved me time. I thank you. I will make sure that all of the storeroom doors are unlocked for you. You will be able to travel through it safely and quickly._";
	text2 = "_Also, help yourself to any of the stores. Rawal says that you deserve them, and that is all I need to hear._";
	code = 
		set_flag(3,15,2);
		sf(2,26,1);
		toggle_quest(36,3);
		award_party_xp(200,2);
	break;		
	
begintalknode 198;
	state = 190;
	nextstate = -1;
	condition = gf(3,15) > 1;
	question = "Can I have some supplies?";
	text1 = "_The supply room is available to you. Take all you need._";
	
begintalknode 199;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "How do you keep control of so many creations?";
	text1 = "His eyes flicker nervously to the servant mind at the north end of the workshop. _I should not say. And I apologize sincerely to you for not being immediately forthcoming._";
	
begintalknode 200;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "What do you think of Shaper Rawal?";
	text1 = "_He is wise and cunning. He keeps us safe. He keeps the war distant. He increases his power, while the rest of the Council dwindles. You are lucky to be in his employ._";
	
begintalknode 201;
	state = 191;
	nextstate = 192;
	condition = 1;
	question = "Unique inventions? Such as?";
	text1 = "_Oh, you know!_ He points at the serviles who pace mindlessly through his workshop, sweeping and carrying supplies. _Rawal is the inventor of the control tool, which brings absolute obedience._";
	
begintalknode 202;
	state = 192;
	nextstate = -1;
	condition = 1;
	question = "And you helped to create it?";
	text1 = "_Create and implant. I am the one who put the tool in your chest. It is a great invention. Currently illegal, but that will change._";
	text2 = "_All it does is keep a person or creation as loyal to the Shapers as they should, by rights, be anyway. Pity about the low implantation survival rate. But that improves with every set of experiments!_";
	
begintalknode 203;
	state = 195;
	nextstate = -1;
	condition = 1;
	question = "I want to learn how to make new creations.";
	text1 = "You conclude your training.";	
	code = 
		begin_shop_mode("Shaper Bruel",
		  "Shaper Bruel can teach you how to make two new sorts of creations (of the Battle and Magic varieties). He can also improve your skill in making creations you have already learned about.",
		  7,4,0);	
	break;
	
begintalknode 204;
	state = 195;
	nextstate = -1;
	condition = 1;
	question = "I want to learn about Healing Craft.";
	text1 = "You conclude your training.";	
	code = 
		begin_shop_mode("Healing Craft",
		  "Shaper Bruel can teach you a variety of the less powerful Healing Craft spells. He can also improve your skill in spells you already know.",
		  6,2,0);	
	break;
	
begintalknode 205;
	state = 195;
	nextstate = 190;
	condition = 1;
	question = "I don't need any more training.";
	text1 = "_Then please tell me how else I can help you._";
	
begintalknode 206;
	state = 196;
	nextstate = -1;
	condition = 1;
	question = "And if I can't kill them?";
	text1 = "Amazingly, Shaper Bruel's smile grows even less sincere. You hadn't thought it possible. _I suppose you can lure them out to me. As long as I don't have to spend time hunting them myself._";
	
begintalknode 207;
	state = 196;
	nextstate = -1;
	condition = 1;
	question = "Is there no chance of restoring their minds?";
	text1 = "Shaper Bruel shows you a long, fresh scratch on his forearm. _One of them fired a thorn at me! A Shaper! They are doomed no matter what. The question is how quick and merciful their end will be._";

	
// Guardian Manola

begintalknode 210;
	state = -1;
	nextstate = 210;
	condition = 1;
	question = "Guardian Manola";
	text1 = "There is a Guardian in this training chamber, practicing a long, complicated series of exercises with a broadsword.";
	text2 = "Guardians are one of the three sects of Shapers, the others being Agents and Shapers. (All three are generally referred to as Shapers by outsiders.) The Guardians are the warriors.";
	text3 = "The Guardian turns to face you when you approach. _Greetings, outsider. Shaper Rawal passed word along of his useful new minion. I am Guardian Manola._";
	text4 = "Her voice surprises you. Guardian Manola is a woman! By tradition, all Agents are women and all Guardians are men. This is most unusual.";
	text5 = "Guardian Manola stands and faces you, though she does not remove her helmet. Her voice is deep and low. _What else do you want to know?_";
	action = INTRO;

begintalknode 211;
	state = 210;
	nextstate = -1;
	condition = gf(2,1) == 0;
	question = "This is the training hall?";
	text1 = "_It is, but Shaper Rawal said that you are not to be trained until he is able to evaluate you. You are close to him. He is in the chamber to the east._";
	text2 = "She returns to her exercises.";
	action = END_TALK;
	
begintalknode 212;
	state = 210;
	nextstate = 211;
	condition = gf(2,1) > 0;
	question = "You are a Guardian?";
	text1 = "_I am. It was my goal from an early age. I showed the talent of a Shaper. I was welcomed into the sect. I was trained. I did not wish to be an Agent. I did not have the patience to be a Shaper._";
	text2 = "_I was about to leave, but Councilor Rawal saw my potential. He helped me to become a Guardian. I am loyal to him for that._";

begintalknode 213;
	state = 210;
	nextstate = 217;
	condition = gf(2,1) > 0 && gf(2,1) < 3;
	question = "Can you train me?";
	text1 = "_Shaper Rawal does not want me to give you personal lessons yet. However, I can provide you with equipment._";
	text2 = "_If you have not done so yet, be sure to get the baton and the crystals._";
	
begintalknode 214;
	state = 210;
	nextstate = -1;
	condition = gf(2,1) > 0;
	question = "Why aren't you out hunting the rogues?";
	text1 = "_I could kill dozens of them. Hundreds. That is what Guardians do. But that would be expensive, and it would reduce Rawal's influence. He is paid to look out for them, after all._";
	text2 = "_Shaper Rawal is holding me back. He hopes that someone can do the Agent's job to solve the problem. Like you._";
	text3 = "_There are still rogues out there, but Shaper Rawal hopes that, now that the Presence is gone, they will calm down on their own. Then he will not have to return the fees paid to look after them._";
	action = DEP_ON_SDF 2 1 2;
	
begintalknode 215;
	state = 211;
	nextstate = -1;
	condition = 1;
	question = "What do Agents do?";
	text1 = "_They are emissaries. Wanderers. Spies. When there is trouble, and there is always trouble, the first response of the Council is to send an Agent._";
	text2 = "_Though Agents are always women, I am no spy. I have no talent for diplomacy._";
	
begintalknode 216;
	state = 211;
	nextstate = -1;
	condition = 1;
	question = "What do Shapers do?";
	text1 = "_They live in their laboratories. They analyze. They study. They improve the existing creation designs._";
	text2 = "_Though many Shapers are women, I do not care to spend my life at a desk._";
	
begintalknode 217;
	state = 211;
	nextstate = 212;
	condition = 1;
	question = "What do Guardians do?";
	text1 = "_We fight! When there is war or rebellion or a problem too difficult for a lone Agent to solve, the Guardians are sent to prevail._";
	text2 = "_Guardians are traditionally men. Almost always. I am an exception, though I had to ... to take steps. To pass the physical exams._";
	
begintalknode 218;
	state = 212;
	nextstate = -1;
	condition = 1;
	question = "What steps?";
	text1 = "_I had the help of Shaper Rawal. Shaper Rawal can make the impossible possible for those who serve him loyally. I have said what he wants you to know. I will say no more on this subject._";
	
begintalknode 219;
	state = 210;
	nextstate = 218;
	condition = gf(2,1) > 0 && gf(2,1) >= 3;
	question = "Can you train me?";
	text1 = "_Shaper Rawal has permitted me to share the war secrets of the Guardians with you. However, we never share our knowledge with outsiders, without proper payment. I will not break this tradition._";
	text2 = "_Shaper Rawal has given you papers that say you are a Shaper. I know better._";
	text3 = "_If you perform enough tasks for Rawal, however, I will lower my prices._";
	text4 = "_Since you have performed several tasks for Rawal, I will lower my prices._";
	code =
		if (gf(2,1) >= 6)
			rs(3);
			else rs(4);
	break;
	
begintalknode 220;
	state = 217;
	nextstate = -1;
	condition = 1;
	question = "Tell me about batons.";
	text1 = "_Batons are one of the great Shaper creations, small living creatures that spit vicious thorns with great speed and accuracy. The thorns are delicate, but they are also envenomed._";
	text2 = "_There are five sorts of thorn batons, and each can spit a different sort of thorn._";
	
begintalknode 221;
	state = 217;
	nextstate = -1;
	condition = 1;
	question = "Tell me about the crystals.";
	text1 = "_They can be flung at your foes. They shatter upon impact, releasing a cloud of charged essence. This will, if thrown properly, afflict all nearby._";
	text2 = "_Shaper weapons are truly powerful. No Guardian enters battle without a hefty pouch of crystals at his side._";
	
begintalknode 222;
	state = 218;
	nextstate = -1;
	condition = 1;
	question = "I would like training.";
	text1 = "You conclude your training.";	
	code = 
		if (gf(2,1) >= 6)
		begin_shop_mode("Guardian Manola",
		  "Guardian Manola can train you in the ways of battle. She can only improve skills you have not trained in three times already.",
		  8,1,0);	
		else begin_shop_mode("Guardian Manola",
		  "Guardian Manola can train you in the ways of battle. She can only improve skills you have not trained in three times already.",
		  8,5,0);	
	break;
	
begintalknode 223;
	state = 218;
	nextstate = 210;
	condition = 1;
	question = "I don't need training.";
	text1 = "_Then what do you want to know?_";

	
// Tinker Thule

begintalknode 230;
	state = -1;
	nextstate = 230;
	condition = 1;
	question = "Name";
	text1 = "There is a servile sitting at this table. She is very old, perhaps over a century. Serviles live for a long time. Their creators made them well.";
	text2 = "At first, you mistake her for a servant or menial laborer. Then you realize that she isn't cleaning. She is carving a crystal. And doing lovely work, from what you can tell.";
	text3 = "She looks up at you and says apologetically, _Sorry. Sorry, visitor. I am Tinker Thule. I am carver. Crystal worker. Crystal seller. I help you?_";
	text5 = "Tinker Thule watches you silently. She is not used to talking. You would guess that she is eager for you to leave so that she can work in silence and solitude.";
	action = INTRO;

begintalknode 231;
	state = 230;
	nextstate = 231;
	condition = 1;
	question = "You are a crystal worker here?";
	text1 = "_Yes. I serve Shaper Rawal. Many years. He likes my work. Even before bad rebels and rogues, I make his crystal carving._";
	text2 = "_Now things bad for serviles. Shaper Rawal protects me. Let me work. He is good._";
	text3 = "_He also give me things to watch. Special crystals. To test. To look at._";
	
begintalknode 232;
	state = 230;
	nextstate = -1;
	condition = 1;
	question = "Can I buy some crystals?";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Tinker Thule",
		  "Tinker Thule is allowed to sell several sorts of crystals to you. Some can be used in combat. Others will be useful later when you learn how to craft items.",
		  9,4,0);	
	break;

begintalknode 233;
	state = 230;
	nextstate = -1;
	condition = 1;
	question = "Can I sell something to you?";
	text1 = "She shakes her head. _I not merchant. Go out to Minallah. Out to ... Barcott. Barcott is name. He buy. I trade to him sometimes._";
	
begintalknode 234;
	state = 231;
	nextstate = -1;
	condition = 1;
	question = "How long have you worked for Shaper Rawal?";
	text1 = "_Lots of years. I was old. Going to be put in fields for rest of life. Rawal rescues me. Sees skill. Takes me with him._";
	
begintalknode 235;
	state = 231;
	nextstate = 232;
	condition = 1;
	question = "Things are bad for serviles?";
	text1 = "_I am smarter sort of servile. Can think. Have skills. Bad for this sort in times of rebels. Smart serviles sent in fields. Or worse._";
	text2 = "_Shaper Rawal protects smart serviles. Lets them work here. I know some hate Rawal. Smart serviles do not._";
	
begintalknode 236;
	state = 231;
	nextstate = -1;
	condition = gf(2,1) == 0;
	question = "Tell me more about the special crystals.";
	text1 = "_Rawal gives to me. Says keep quiet. Will not show you unless Rawal says._";
	
begintalknode 237;
	state = 232;
	nextstate = -1;
	condition = 1;
	question = "What do you think of the rebels?";
	text1 = "_I hate rebels. Fear them. Once, years ago, rebel comes to me. I send away. I eat. I warm. I work. I have good life. Rebels just destroy. Want them to stay away from me._";
	
begintalknode 238;
	state = 231;
	nextstate = -1;
	condition = gf(2,1) > 0 && gf(2,24) == 0;
	question = "Tell me more about the special crystals.";
	text1 = "_One special crystal. Is large. Used to be shell of canister. Strange Shaper thing. I not use it. Rawal send word. I give to you. Says you can use. Says is gift of power from Rawal and Shapers._";
	text2 = "She walks into the west alcove and unlocks the door there. _Canister in there. Can use now._";
	code =
		if (gf(2,24) == 0)
			sf(2,24,1);
			else rs(2);
	break;
	
begintalknode 239;
	state = 230;
	nextstate = -1;
	condition = gf(2,24) > 0;
	question = "Tell me more about the canister.";
	text1 = "_You have now. Is Shaper thing. I know no more of it._";

begintalknode 250;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "Name";
	text1 = "The servile you saw just outside the entrance to the Spire approaches you. _Come. Follow. I lead to mighty Shaper._";
	text3 = "He turns and walks quickly to the west. He doesn't bother to brush the snow off of his robe.";
	action = SET_SDF 3 12 1;

begintalknode 251;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "Gevik says, _Follow. See Shaper. Follow._";

begintalknode 252;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "Gevik points at Shaper Rawal. _There. Is Shaper. I done. Just wait now._";	
	
begintalknode 290; // 
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "Alas, your actions have infuriated the locals. Shaper Rawal's instructions to the city guards if you turn unpredictable or dangerous are clear. They hunt you down.";
	text2 = "You have some success evading them for a while. Then Shaper Rawal decides to get involved.";
	text3 = "A few days later, while you are hiding in an icy crevasse, you feel a numb sensation in your chest. Then it becomes a sharp pain. Then you collapse and die.";
	text4 = "If you had lasted longer, you might have discovered a way to free yourself from the powerful bonds Shaper Rawal placed on you. Sadly, it was not to be.";
	code =
		erase_char(1000);
	break;